package com.xls.commonlibrary.http;

public class Result<T> {

    // data is {} Object --------- T type:Result<Bean>
    // data is [] List   --------- T type:Result<List<Bean>>
    // Bean 是具体数据对象，例如  AddLogResult

    private int code = 0;// 1 成功 其他为失败
    private String msg = "";// 信息
    private String token = "";
    private T data = null; // 数据实体


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }



    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
